//
//  ViewController.m
//  LKBoTongFeedbackDemo
//
//  Created by Eric MiAo on 2018/7/23.
//  Copyright © 2018年 Eric MiAo. All rights reserved.
//

#import "ViewController.h"
#import "LKBoTongFeedbackFeatureWebViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [UIColor orangeColor];
    btn.layer.cornerRadius = 2;
    btn.layer.borderColor = [UIColor blackColor].CGColor;
    btn.layer.borderWidth = 1;
    btn.frame = CGRectMake(100, 100, 100, 60);
    [btn setTitle:@"GO" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(pushToWebView) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)pushToWebView {
    LKBoTongFeedbackFeatureWebViewController *vc = [[LKBoTongFeedbackFeatureWebViewController alloc] init];
    
    vc.webURL = @"https://h5.botong.tech/#/customerService";
    vc.userInfoDic = @{@"":@""};
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
